package com.advertisementsystem.Enum;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum AlertLevelEnum {
    INFO(1, "信息"),
    WARNING(2, "警告"),
    ERROR(3, "错误"),
    CRITICAL(4, "严重");

    private final Integer code;

    public Integer getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    private final String description;

    // ... 构造方法和getter方法 ...
}